SureCart\Support\Blocks\TemplateUtilityService A

Total Complexity 63
Dependencies 6
Dependents 2
Total lines 464
Lines of code 236
Logical lines of code 124
Comment lines 178
Methods 19
Properties 3

Methods 19

Method Rating Maintainability Complexity Lines of code
buildTemplateResultsFromPost()
A
47 7 35
__construct()
S
50 6 28
buildTemplateResultFromFile()
S
52 6 22
injectThemeAttributeInContent()
S
54 6 22
flattenBlocks()
S
56 5 20
createNewBlockTemplateObject()
S
57 4 15
getThemeTemplatePath()
S
58 4 15
getTemplatePaths()
S
62 3 11
removeThemeTemplatesWithCustomAlternative()
S
55 2 23
isBlockAvailableInSiteEditor()
S
70 3 6
isFSETheme()
S
66 3 9
supportsBlockTemplates()
S
77 3 3
getBlockTemplateDescription()
S
71 2 6
getTemplatesDirectory()
S
79 2 3
getBlockTemplateTitle()
S
70 2 6
templateHasTitle()
S
78 2 3
themeHasTemplatePart()
S
79 1 3
themeHasTemplate()
S
79 1 3
generateTemplateSlugFromPath()
S
79 1 3